import {type RouteRecordRaw, createRouter, createWebHashHistory} from 'vue-router';

import Document from '@/views/content/Document.vue';
import FunctionID from '@/views/content/FunctionID.vue';
import Group from '@/views/content/Group.vue';
import Project from '@/views/content/Project.vue';

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: '/project',
    },
    {
        path: '/project',
        name: 'project',
        component: Project,
    },
    {
        path: '/document',
        name: 'document',
        component: Document,
    },
    {
        path: '/group',
        name: 'group',
        component: Group,
    },
    {
        path: '/function',
        name: 'function',
        component: FunctionID,
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;
